package com.ying.service.system;

import com.ying.core.page.PageData;
import com.ying.core.page.PageWrap;
import com.ying.po.system.Permission;
import com.ying.po.system.User;

import java.util.List;

public interface PermissionService {

    List<String> findPermissionsByUserType(Integer id);

    Integer create(Permission permission);

    Permission findById(Integer id);

    PageData<Permission> findAllByPage(PageWrap<Permission> pageWrap);

    void updateById(Permission permission);

    void deleteById(Integer id);

    List<Permission> findAll();

    void deleteByIds(List<Integer> ids);

    Integer createByName(String perName);

    List<Integer> findPermissionIdByRoleCode(Integer roleCode);

    List<Integer> changePermissionByIdList(List<Integer> ids, Integer roleCode);

}
